{block name="title"}<title>首页</title>{/block}
{block name="top"}<link rel="stylesheet" href="__CSS__/homepage.css"> {/block}
{extend	name="index"	/}
{block name="right"}
        <div class="mid">
            <div id="box">
                <div id="div" class="hd">
                    <ul id="img">
                        {volist name="reslist" id="vo"}
                        <li><a><img src="{$vo.img}" /></a></li>
                        {/volist}
                    </ul>
                </div>
                <div class="tab"></div>
            </div>

            <script src="__JS__/jquery-3.2.1.min.js"></script>
            <script type="text/javascript" src="__JS__/move.js"></script>
            <script type="text/javascript">
                var s = {};
                s.boxEle = "#box";
                s.dilay  = 400;
                s.autoSpeed = 2500; 
                _IMGMove.run( s )
            </script>
            
            <div class="mid_left">
                <p><a>热帖推荐</a></p>
               

                <!-- <ul>
                    <li class="left1"><a><img src="__IMG__/6.png" ></a></li>
                    <li class="left2">
                        <a href="">回忆过去。#反正都有趣#</a>
                        <span style="color:#ffb085">khdsfj</span>
                    </li>
                    <li class="left3" >
                        <a ><img src="__IMG__/10.jpg" ></a>
                    </li>
                    <li class="left4">
                        <a>2017/7/26</a>
                    </li>
                </ul> -->
                <!-- <ul>
                    <li class="left1"><a><img src="__IMG__/6.png" ></a></li>
                    <li class="left2">
                        <a href="">#反正都有趣##感恩默契大考验##冬天快乐#感谢遇见你</a>
                        <span style="color:#ffb085">tang0pan</span>
                    </li>
                    <li class="left3" >
                        <a ><img src="__IMG__/11.jpg" ></a>
                    </li>
                    <li class="left4">
                        <a>2017/11/24 下午4:15:43</a>
                    </li>
                </ul>
                <ul>
                    <li class="left1"><a><img src="__IMG__/6.png" ></a></li>
                    <li class="left2">
                        <a href="">测试产品</a>
                        <span style="color:#ffb085">tang0pan</span>
                    </li>
                    <li class="left3" >
                        <a ><img src="__IMG__/12.jpg" ></a>
                    </li>
                    <li class="left4">
                        <a>2017/11/24 下午4:15:43</a>
                    </li>
                </ul>
                <ul>
                    <li class="left1"><a><img src="__IMG__/6.png" ></a></li>
                    <li class="left2">
                        <a href="">飞洒地方撒旦法撒旦法</a>
                        <span style="color:#ffb085">tang0pan</span>
                    </li>
                    <li class="left3" >
                        <a ><img src="__IMG__/13.jpg" ></a>
                        <a ><img src="__IMG__/14.jpg" ></a>
                    </li>
                    <li class="left4">
                        <a>2017/11/24 下午4:15:43</a>
                    </li>
                </ul> -->
                <div class="leftend"><a>没有数据</a></div>
            </div>
            <div class="right">
                <div class="mid_right">
                    <p><a>热门话题</a></p>
                    <ul >
                        <li><a href="#">#向美食势力低头#</a></li>
                        <li><a href="#">#像电影一样生活#</a></li>
                        <li><a href="#">#用手机记录生活#</a></li>
                        <li><a href="#">#和喜欢的一切在一起#</a></li>
                        <li><a href="#" style="margin-left:190px;color:#00ad6e;font-size:14px;";>查看更多</a></li>
                    </ul>
                </div>
                <div class="mid_right1">
                    <img src="__IMG__/15.png">
                    <a href="">发表帖子</a>
                </div>
                <div class="mid_right1">
                    <img src="__IMG__/16.png">
                    <a href="">签到</a>
                    <p>签到3021人</p>
                </div>
                <div class="mid_right2">
                    <p><a>热门标签</a></p>
                    <span>
                        <ul>
                            <li><a href="">R11</a></li>
                            <li><a href="">R9s</a></li>
                            <li><a href="">R9</a></li>
                        </ul>
                    </span>
                </div>
                <div class="mid_right5">
                    <img src="__IMG__/22.png">
                    <p>OPPO社区APP</p>
                    <a href="">下载到电脑</a>
                </div>
                <div class="mid_right3">
                    <span><a>关注我们</a></span>
                    <div class="mid_right4">
                        <img src="__IMG__/17.png">
                        <a href=""><img src="__IMG__/20.png">官方微博</a>
                    </div>
                    <div class="mid_right4">
                        <img src="__IMG__/19.png">
                        <a href=""><img src="__IMG__/21.png">官方微信</a>
                        <p>扫一扫</p>
                    </div>
                </div>
            </div>
            <div class="wo"><a>友情链接</a></div>
            <div class="ni"><a href="">OPPO R11</a></div>
        </div>
        <script>
            var status=1
            var page=1
            var winHei=$(window).height()
            $(window).on('scroll',function(){
                var btnToTop=$('.leftend').offset().top
                var sclToTop=$(window).scrollTop()
                if(sclToTop+winHei>=btnToTop&status==1){
                    status=0
                    loadList()
                }
            })

            function loadList(){
                $.get('{:Url("home/homepage/contentList")}',{pageno:page},function(data){
                    if(data.code==1){
                        $('.leftend').before(data.data)
                        status=1
                        page++
                    }
                    console.log(data);
                })
            }
            loadList()
        </script>
        {/block}